MsgBox ( "<Message>", "<Command Button>"
)
MsgBox plugin
displays a message in a dialog box, waits for the user to click a button, and
returns.
Parameters
<Message>
The message to be displayed in the dialog box.
<Command Button>
The command buttons to be displayed in the dialog box. Possible values are "OK"(Default), "OKCANCEL", "YESNO" or "YESNOCANCEL".
Return Value
- Returns the value of the button clicked.
Remarks
- Valid Syntax
for Msgbox:
MsgBox ( "message", "OKCANCEL" )
Example
:MAIN
answer 3
$ret = msgbox ("The value returned is","OKCANCEL")
msgbox($ret)
msgbox(msgbox ("You have chosen: ","YESNO"))
MsgBox (concat("Are you sure",chr(10),"Do you want to continue"),"YESNOCANCEL")
Hangup
goto MAIN
:ONHANGUP
hangup
goto MAIN